package com.mechmind.robotsocket.service;

import cn.elibot.robot.plugin.contribution.task.*;
import com.mechmind.robotsocket.resource.ResourceSupport;
import com.mechmind.robotsocket.view.TestView;

import java.util.Locale;

public class TestServiceImpl implements SwingTaskNodeService {

    @Override
    public String getId() {
        return "Test";
    }

    @Override
    public String getTypeName(Locale locale) {
        return ResourceSupport.getStringByKey(locale,"Test");
    }

    @Override
    public void configureContribution(TaskNodeFeatures taskNodeFeatures) {
//        taskNodeFeatures.setChildrenAllowed(true);
//        taskNodeFeatures.setDeprecated(false);
//        taskNodeFeatures.setUserInsertable(true);
//        taskNodeFeatures.setPlaceHolderRequired(false);
    }

    @Override
    public SwingTaskNodeView createView(TaskNodeViewApiProvider viewApiProvider) {
        return new TestView();
    }

    @Override
    public TaskNodeContribution createNode(TaskApiProvider apiProvider, TaskNodeDataModelWrapper taskNodeDataModelWrapper, boolean isCloningOrLoading) {
        return null;
    }
}
